package com.dj.xbirdie.entity;


import com.dj.xbirdie.entity.mqtt.PublishEntity
import com.dj.xbirdie.entity.mqtt.SubjectEntity

class MqttEntity(var name: String = "mqttname") {

    var protocol:String="mqtt"

    var host:String="";
    var port:Int=1883;
    var clientId:String="";

    //授权
    var isAuth:Boolean=false;
    var username:String="";
    var password:String="";
    //遗言
    var isWill:Boolean=false;
    var willTopic:String="";
    var willQos:String="";
    var willPayload:String="";

    //发布
    var publish:PublishEntity= PublishEntity();
    //订阅列表
    var subject:MutableList<SubjectEntity> = mutableListOf();
}
